#ifndef __PLAYERLAYER_H__
#define  __PLAYERLAYER_H__
#include "gamemain.h"
#include "cocos2d.h"
class PlayerLayer:public GameMain
{
public:
	virtual bool init();
	PlayerLayer()
	{

	}
	LAYER_CREATE_FUNC(PlayerLayer);
	virtual void onEnter();
	virtual void onExit();
	virtual bool ccTouchBegan(cocos2d::CCTouch *pTouch, cocos2d::CCEvent *pEvent);
	virtual cocos2d::CCPoint setIndexToPoint(cocos2d::CCPoint pt);
	//virtual bool ccTouchEnded(CCTouch *pTouch, CCEvent *pEvent);
protected:
private:
	bool is_touch_able;
	bool is_first_click;
	void doHelp(float dt); 
	virtual void step(float ft);
	void particleCallBack(CCNode *pSender);

	void playerWin(cocos2d::CCObject *sender);
	void computerWin(cocos2d::CCObject *sender);
};
#endif